﻿@using PNProject
@model List<PNProject.EF.Link>
@{
    string textLang = ViewData["lang"].ToString();
    bool lang = string.IsNullOrEmpty(textLang) ? true : false;
}
<div class="boxleft-1">
    <div class="ttboxleft">
        <p>@this.LocalResources("WebsiteLinks")</p>
    </div>
    <div class="ccboxleft">

        <div class="lienketweb">
            <select class="lketI form" name="cboWebLink">
                @foreach (var item in @Model)
                {
                    if (item.Type == true)
                    {
                    <option value="@item.URL">@item.TextLink</option>
                    }
                }

            </select>
        </div>

    </div>
</div>
<div class="qc-left">
    <ul>
        @foreach (var item in @Model)
        {
            if (item.Type == false)
            {
            <li><a href="@item.URL" target="_blank">
                <img src="@item.Image" alt="" /></a></li>
            }
        }

    </ul>
</div>

<script type="text/javascript">
    $(document).ready(function() {
        $(".lienketweb select option").click(function() {
            var text = $(this).attr("value");
            var win = window.open(text, '_blank');
            win.focus();
        });
    });
</script>
